home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pov / povlisti.ngs / twist2.pov < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.6 KB  |  82 lines

  1. // Persistence of Vision Raytracer
  2. // Twister objects were generated using the POV-Ray utility "twister.exe"
  3. // and then hand-tweaked.
  4.  
  5. #include "include.inc"
  6. #declare Pale_Pink   = color red 0.88 green 0.74 blue 0.77
  7. #declare Pale_Blue   = color red 0.65 green 0.80 blue 0.91
  8. #declare Pale_Green  = color red 0.68 green 0.84 blue 0.74
  9. #declare Pale_Yellow = color red 0.88 green 0.88 blue 0.74
  10.  
  11. // These declarations are required for the twist files.
  12. // If you change the _type_ of object used, you must also reflect that
  13. // change in the particular twist.inc file.  Watch out for exceeding the
  14. // scale of the bounding shape in the twist.inc files, too.
  15. //-----------------------------------------------------------------
  16. // Shapes used for each twister
  17. // ----------------------------
  18. #declare Part1 = intersection { Disk_X scale < 5.00 0.25 0.25 > }
  19. #declare Part2 = quadric { Ellipsoid scale < 2.00 2.0 0.5 > }
  20. #declare Part3 = union {
  21.     quadric { Ellipsoid scale < 0.25 0.25 0.25 > translate <-5.25 0 0> }
  22.     quadric { Ellipsoid scale < 0.25 0.25 0.25 > translate < 5.25 0 0> }
  23. }
  24.  
  25. // Textures for each twister
  26. // ----------------------------
  27. #declare Texture1 =
  28.  texture {
  29.     color blue 0.5
  30.     metallic
  31.     brilliance 7
  32.     phong 0.85 phong_size 50
  33.     ambient 0.2
  34.     reflection 0.85
  35. }
  36. #declare Texture2 =  texture { color White reflection 0.95 }
  37. #declare Texture3 =  texture {
  38.     Silver_Metal
  39.     gradient <0 1 0>
  40.     color_map {
  41.         [0.00 0.25 color Pale_Pink color Pale_Green]
  42.         [0.25 0.50 color Pale_Green color Pale_Blue]
  43.         [0.50 0.75 color Pale_Blue color Pale_Yellow]
  44.         [0.75 1.00 color Pale_Yellow color Pale_Pink]
  45.     }
  46. //    scale <1 10 1>
  47.     }
  48.  
  49. // Now, include the twister data (as objects)
  50. // ----------------------------
  51. #include "twist1.inc"
  52. #include "twist2.inc"
  53. #include "twist3.inc"
  54.  
  55. // This sets things up for a possible animation.
  56. // Note that twister #2 is 90 degrees out of sync with the others
  57. // ----------------------------
  58. #declare RotateY1 = 0
  59. #declare RotateY2 = 90
  60. #declare RotateY3 = 0
  61.  
  62. // Now, start the scene description
  63. // ----------------------------
  64. camera {
  65.    location <0 0  -25>
  66.    direction <0 0  FoV_45>
  67.    up  <0  1  0>
  68.    right <1.33333 0 0>
  69.    look_at <0 0 0>
  70. }
  71.  
  72. object { light_source  { <-10 10 -20>  color White  } }
  73. #declare The_Twist = composite {
  74.     object { Macaroni1 rotate <0 RotateY1 0> }
  75.     object { Macaroni2 rotate <0 RotateY2 0> }
  76.     object { Macaroni3 rotate <0 RotateY3 0> }
  77. }
  78.  
  79. composite { The_Twist
  80.     translate <0 -10 0>  // Centered on 0 y
  81. }
  82.